const express = require('express')
const app = express()
const router = require('./router')
const cors = require('cors')
const port = 3000

app.use(cors())
app.use(express.json())
app.use(express.urlencoded({ extended: false }))
app.use(router)

// app.use(express.static('webpage'))

app.listen(port, () => console.log(`Example app listening on port ${port}!`))